<?php // Base Controller (Extend your controllers from it)
abstract class BaseController extends XenonController {
    public $layout = "default"; // Default layout
    
    public function init() {
        parent::init();
        
        header("X-FinalURL: ".request_url());
        
        $this->view->USER = $this->USER;
        
        $this->view->includeCSS(CONTROLLER.'.css', 'body');
        $this->view->includeCSS(CONTROLLER.'_'.$this->action.'.css', 'footer');
        $this->view->includeJS(CONTROLLER.'.js', 'body');
        $this->view->includeJS(CONTROLLER.'_'.$this->action.'.js', 'footer');
    }
    
    
}

class View extends XenonView{
    
    
}
